package com.leap.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.leap.entity.Media;
import com.leap.entity.dto.ArticleUploadDTO;

import java.util.List;

public interface MediaService extends IService<Media> {

    List<Media> getMediasByArticleId(Long id);

    Media getCoverById(Long articleId);

    void saveMedia(ArticleUploadDTO articleDTO, Long articleId);

    boolean deleteMedia(Long articleId);
}
